const express = require('express')
const router = express.Router()
const article_handler=require("../router_handler/article")

// 1. 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi')
// 2. 导入需要的验证规则对象
const { article_list_schema,article_info_schema } = require('../schema/article')


router.post("/list",expressJoi(article_list_schema), article_handler.getList)
router.post("/info/:id",expressJoi(article_info_schema), article_handler.getInfo)
module.exports = router